using System;
using System.Data;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace MPR.Poker.Model.SYS
{
    /// <summary>
    /// Trần Hòa Nghĩa
    /// 27/11/2013
    /// Danh sách người dùng
    /// </summary>
    public partial class SYS_User
    {
        public static readonly int AdminIDSys = 1;

        #region Member
        private int m_IDSys = 0;
        private string m_UserName = string.Empty;
        private string m_Password = string.Empty;
        private string m_Note = string.Empty;
        private bool m_IsActived = false;
        private int m_OrderIndex = 0;
        private bool m_IsDeleted = false;
        private DateTime? m_DeletedDate;
        #endregion
        #region Properties      

        /// <summary>
        /// IDSys
        /// 
        /// </summary>
        [Key, DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)]
        public int IDSys
        {
            get { return m_IDSys; }
            set { m_IDSys = value; }
        }
        /// <summary>
        /// UserName
        /// 
        /// </summary>
        public string UserName
        {
            get { return m_UserName; }
            set { m_UserName = value; }
        }
        /// <summary>
        /// Password
        /// 
        /// </summary>
        public string Password
        {
            get { return m_Password; }
            set { m_Password = value; }
        }
        
        /// <summary>
        /// Note
        /// Ghi chú
        /// </summary>
        public string Note
        {
            get { return m_Note; }
            set { m_Note = value; }
        }
        /// <summary>
        /// IsActived
        /// 
        /// </summary>
        public bool IsActived
        {
            get { return m_IsActived; }
            set { m_IsActived = value; }
        }
        /// <summary>
        /// OrderIndex
        /// 
        /// </summary>
        public int OrderIndex
        {
            get { return m_OrderIndex; }
            set { m_OrderIndex = value; }
        }
        /// <summary>
        /// IsDeleted
        /// 
        /// </summary>
        public bool IsDeleted
        {
            get { return m_IsDeleted; }
            set { m_IsDeleted = value; }
        }
        /// <summary>
        /// DeletedDate
        /// 
        /// </summary>
        public DateTime? DeletedDate
        {
            get { return m_DeletedDate; }
            set { m_DeletedDate = value; }
        }

        #endregion
        #region Constructor
        public SYS_User()
        {
        }
        #endregion
        #region Column Names
        public const String colUID = "UID";
        public const String colPassword = "Password";
        public const String colNote = "Note";
        public const String colIsActived = "IsActived";
        public const String colOrderIndex = "OrderIndex";
        public const String colIsDeleted = "IsDeleted";
        public const String colDeletedDate = "DeletedDate";
        #endregion
    }
}
